package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * RD_ChangeMaxValue实体类
 * 
 * @author 
 *
 */
public class RdChangemaxvalue {
	/***/
	private Object ID; 
	/***/
	private java.time.Instant Datee;

	private java.time.Instant Datee2;
	/***/
	private Integer EmpID; 
	/***/
	private String UserNo; 
	/***/
	private String MeterNo; 
	/***/
	private Integer MaxValue1; 
	/***/
	private Integer MaxValue2; 
	/***/
	private String Remark; 
	/**
	 * 实例化
	 */
	public RdChangemaxvalue() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public RdChangemaxvalue(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("Datee") instanceof java.time.Instant) {
			this.setDatee((java.time.Instant) obj.get("Datee"));
		}
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("MeterNo") instanceof String) {
			this.setMeterNo((String) obj.get("MeterNo"));
		}
		if (obj.get("MaxValue1") instanceof Number) {
			this.setMaxValue1(((Number) obj.get("MaxValue1")).intValue());
		}
		if (obj.get("MaxValue2") instanceof Number) {
			this.setMaxValue2(((Number) obj.get("MaxValue2")).intValue());
		}
		if (obj.get("Remark") instanceof String) {
			this.setRemark((String) obj.get("Remark"));
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getDatee() != null) {
			result.put("Datee",this.getDatee());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getMeterNo() != null) {
			result.put("MeterNo",this.getMeterNo());
		}
		if (this.getMaxValue1() != null) {
			result.put("MaxValue1",this.getMaxValue1());
		}
		if (this.getMaxValue2() != null) {
			result.put("MaxValue2",this.getMaxValue2());
		}
		if (this.getRemark() != null) {
			result.put("Remark",this.getRemark());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取Datee
	 * 
	 * @return
	 */
	public java.time.Instant getDatee() {
		return Datee;
	}

	/**
	 * 设置Datee
	 * 
	 * @param Datee
	 */
	public void setDatee(java.time.Instant Datee) {
		this.Datee = Datee;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取MeterNo
	 * 
	 * @return
	 */
	public String getMeterNo() {
		return MeterNo;
	}

	/**
	 * 设置MeterNo
	 * 
	 * @param MeterNo
	 */
	public void setMeterNo(String MeterNo) {
		this.MeterNo = MeterNo;
	}
	
	/**
	 * 获取MaxValue1
	 * 
	 * @return
	 */
	public Integer getMaxValue1() {
		return MaxValue1;
	}

	/**
	 * 设置MaxValue1
	 * 
	 * @param MaxValue1
	 */
	public void setMaxValue1(Integer MaxValue1) {
		this.MaxValue1 = MaxValue1;
	}
	
	/**
	 * 获取MaxValue2
	 * 
	 * @return
	 */
	public Integer getMaxValue2() {
		return MaxValue2;
	}

	/**
	 * 设置MaxValue2
	 * 
	 * @param MaxValue2
	 */
	public void setMaxValue2(Integer MaxValue2) {
		this.MaxValue2 = MaxValue2;
	}
	
	/**
	 * 获取Remark
	 * 
	 * @return
	 */
	public String getRemark() {
		return Remark;
	}

	/**
	 * 设置Remark
	 * 
	 * @param Remark
	 */
	public void setRemark(String Remark) {
		this.Remark = Remark;
	}

	public Instant getDatee2() {
		return Datee2;
	}

	public void setDatee2(Instant datee2) {
		Datee2 = datee2;
	}

	@Override
	public String toString() {
		return "RdChangemaxvalue [ID=" + ID + " , Datee=" + Datee + " , EmpID=" + EmpID + " , UserNo=" + UserNo + " , MeterNo=" + MeterNo + " , MaxValue1=" + MaxValue1 + " , MaxValue2=" + MaxValue2 + " , Remark=" + Remark + "  ]";
	
	}
	
	
}
